package pageObject;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;

public class HomePage {
	private WebDriver driver;
	
	public HomePage(WebDriver driver){
		this.driver = driver;
	}
	
	public SearchResult searchString() throws Exception{
		
		driver.findElement(By.id("query")).sendKeys("Mobile");
		driver.findElement(By.xpath("//input[@class = 'search_button blue']")).click();
		
		return new SearchResult(driver);
	}
	
}
